/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.controller;

import io.renren.common.utils.Result;
import io.renren.dto.StockOrderDTO;
import io.renren.dto.SysRoleDTO;
import io.renren.service.SysRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 角色管理
 * 
 * @author Mark sunlightcs@gmail.com
 */
@RestController
@RequestMapping("/sys/role")
@Api(tags="角色管理")
public class SysRoleController {
	@Autowired
	private SysRoleService sysRoleService;


	@GetMapping("getRoleName")
	@ApiOperation("分页")
	public Result<List<SysRoleDTO>> getRoleName(Long userId){
		List<SysRoleDTO> page = sysRoleService.getRoleName(userId);

		return new Result< List<SysRoleDTO>>().ok(page);
	}


}